home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 November / Chip Kasım 2001.iso / prog / cdcode / xsetup / SETUP.EXE / {app} / plugins / XQ Desktop Icon Size.xpl < prev    next >
Encoding:
XSetup plugin  |  2001-02-08  |  1.4 KB  |  43 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="2"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\Desktop\Icons\Icon Options"
  5. "NAME"="Icon Size"
  6. "VERSION"="1.02"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Icon Size (px)"
  9. "DESCRIPTION 1"="Use this option to specify the size for the icons on your desktop (value is in pixels). Recommended values are 16, 32 and 48; using other sizes may make your icons look distorted."
  10. "DESCRIPTION 2"="By default, it is "32" (no quotes). To reset the value, simply clear the field."
  11. "DESCRIPTION 3"="NOTE: this will also affect your Start Menu and the Large Icon view in Windows Explorer."
  12. "AUTHOR"="Xteq Systems"
  13. "CONTACTURL"="http://www.xteq.com"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="Thanks to Neil R. Turner [totalxs@hotmail.com] for the Recommended Sizes and Start Menu/Explorer Notice."
  16.  
  17. sP="HKCU\Control Panel\Desktop\WindowMetrics\"
  18. sV1="Shell Icon Size"
  19.  
  20. Sub Plugin_Initialize 
  21.  i=RegReadValue(sP & sV1)
  22.  if IsEmpty(i) then
  23.     SetUIElement 1,""
  24.  else
  25.     SetUIElement 1,i
  26.  end if
  27. End Sub
  28.  
  29. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  30.  s=GetUIElement(1)
  31.  if len(s)=0 then 
  32.     'User wants to kill value
  33.     if RegValueExists(sP & sV1) then Call RegDeleteValue(sP & sV1) 
  34.  else
  35.     Call RegWriteValue(sP & sV1,s,1)
  36.  end if
  37.  
  38.  Call IndicateSettingChange()
  39. End Sub
  40.  
  41. Sub Plugin_Terminate 
  42. End Sub
  43.